package com.example.icongyou.bean;

import com.google.gson.annotations.SerializedName;

public class Semester {

    @SerializedName("semesterId")
    private String semesterId;  // 学期ID (主键)

    @SerializedName("semesterName")
    private String semesterName; // 学期名称（如2024-2025学年第一学期）

    @SerializedName("startDate")
    private String startDate;   // 学期开始日期（yyyy-MM-dd）

    @SerializedName("endDate")
    private String endDate;     // 学期结束日期（yyyy-MM-dd）

    @SerializedName("status")
    private int status; // 状态：1-进行中，0-已结束

    // 完整构造函数
    public Semester(String semesterId, String semesterName, String startDate, String endDate, int status) {
        this.semesterId = semesterId;
        this.semesterName = semesterName;
        this.startDate = startDate;
        this.endDate = endDate;
        this.status = status;
    }

    // Getters and Setters
    public String getSemesterId() {
        return semesterId;
    }

    public void setSemesterId(String semesterId) {
        this.semesterId = semesterId;
    }

    public String getSemesterName() {
        return semesterName;
    }

    public void setSemesterName(String semesterName) {
        this.semesterName = semesterName;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}